package com.infowarelab.config.service.impl;

import java.util.List;
import java.util.Map;

import org.jradweb.core.orm.PageResult;

import com.infowarelab.config.model.Site;
import com.infowarelab.config.service.AbstractSiteService;
import com.infowarelab.config.service.SiteService;

 
/**
 * Service Implement Class .
 * 
 * Created On Mon Jun 30 10:39:47 CST 2008
 * @author Code Generator
 * @version $Id: SiteServiceImpl.java 139 2008-10-08 05:20:18Z wagzhi $
 */
public class SiteServiceImpl extends AbstractSiteService implements SiteService{
	
		public Site getSite(Integer id){
			return this.siteDao.findById(id);
		}
		
		public List<Site> getAll(){
			return this.siteDao.getAll();
		}
		
		public Site update(Site site){
			return  this.siteDao.merge(site);
		}
		
		public void save(Site site){
			this.siteDao.persist(site);
		}
		
		public void delete(Site site){
			this.siteDao.delete(site);
		}
		
		
		public PageResult<Site> getPageResult(int pageNumber,int pageSize,String condition,Map<String,Object> params){
			return this.siteDao.getPageResult(pageNumber, pageSize, condition, params);
		}
		
}